﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="LoadSearch.aspx.cs" Inherits="Ewts.Cumtomer.LoadSearch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript">
    $(document).ready(function () {
        $.datepicker.regional['zh-CN'] = {
            clearText: '清除',
            clearStatus: '清除已选日期',
            closeText: '关闭',
            closeStatus: '不改变当前选择',
            prevText: '<上月',
            prevStatus: '显示上月',
            prevBigText: '<<',
            prevBigStatus: '显示上一年',
            nextText: '下月>',
            nextStatus: '显示下月',
            nextBigText: '>>',
            nextBigStatus: '显示下一年',
            currentText: '今天',
            currentStatus: '显示本月',
            monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
            monthNamesShort: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'],
            monthStatus: '选择月份',
            yearStatus: '选择年份',
            weekHeader: '周',
            weekStatus: '年内周次',
            dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
            dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
            dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
            dayStatus: '设置 DD 为一周起始',
            dateStatus: '选择 m月 d日, DD',
            dateFormat: 'yy-mm-dd',
            firstDay: 1,
            initStatus: '请选择日期',
            isRTL: false
        };
        $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
        $(".date1, .date2").datepicker({
            "dateFormat": "yy-mm-dd"
        });
    });
</script>
<style>
    .lefttd { text-align:right; width:60px;}
    .lefttd2 { text-align:right; width:80px;}
    .righttd { text-align:left; width:120px;}
    .txtInput { width:110px;}
    .date1 { width:110px;}
    .date2 { width:110px;}
</style>
<link href="/css/layout.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<h2>Load查询</h2>
<br />
<div>
	<table border="0" cellpadding="0" cellspacing="1">
     	<tr>
        	<td class="lefttd"><label for="load">load号：</label></td>
        	<td class="righttd"><input type="text" class="txtInput" id="txtLoad" runat="server" /></td>
        	<td class="lefttd2"><label for="load">收集日期起：</label></td>
        	<td class="righttd">
            	<input type="text" id="txtStart" runat="server" class="date1" size="15" />
            	
            </td>
<%--        	<td class="lefttd"><label for="name">归属地：</label></td>
        	<td class="righttd">
                    	<asp:DropDownList ID="dropBelong" CssClass="txtInput" runat="server">
                    <asp:ListItem Value="" Text="全选">全选</asp:ListItem>
                    <asp:ListItem Value="上海" Text="上海"></asp:ListItem>
                    <asp:ListItem Value="北京" Text="北京"></asp:ListItem>
                    <asp:ListItem Value="苏州" Text="苏州"></asp:ListItem>
                    <asp:ListItem Value="广州" Text="广州"></asp:ListItem>
                </asp:DropDownList>
            </td>      --%>
        	<td class="lefttd"><label>收集单号：</label></td>
        	<td class="righttd">
            	<input type="text" class="txtInput" id="txtWrlNo" runat="server" />
            </td>     
        	<td class="lefttd"><label>分类情况：</label></td>
        	<td class="righttd">
            	<asp:DropDownList ID="dropClassfiy" runat="server" CssClass="txtInput">
                    <asp:ListItem Value="">全选</asp:ListItem>
                    <asp:ListItem Value="未分类">未分类</asp:ListItem>
                    <asp:ListItem Value="分类中">分类中</asp:ListItem>
                    <asp:ListItem Value="分类完成">分类中</asp:ListItem>
                </asp:DropDownList>
            </td>     
          
        </tr>
   	<tr>
        	<td class="lefttd"><label for="load">CJO号：</label></td>
        	<td class="righttd"><input type="text" id="txtCJO"  class="txtInput" runat="server" /></td>
        	<td class="lefttd2"><label for="load">收集日期止：</label></td>
        	<td class="righttd"><input type="text" id="txtEnd" class="date2" runat="server" />
     
          	
            </td>
 <%--       	<td class="lefttd"><label for="name">处理地：</label></td>
        	<td class="righttd">
          	<asp:DropDownList ID="dropGraphic" CssClass="txtInput" runat="server">
                    <asp:ListItem Value="" Text="全选">全选</asp:ListItem>
                    <asp:ListItem Value="上海" Text="上海"></asp:ListItem>
                    <asp:ListItem Value="北京" Text="北京"></asp:ListItem>
                    <asp:ListItem Value="苏州" Text="苏州"></asp:ListItem>
                    <asp:ListItem Value="广州" Text="广州"></asp:ListItem>
                </asp:DropDownList>
            </td>      --%>
        	<td class="lefttd"><label>理货情况：</label></td>
        	<td class="righttd">
            	<asp:DropDownList ID="dropCurStatus" CssClass="txtInput" runat="server">
                    <asp:ListItem Value="" Text="全选">全选</asp:ListItem>
                    <asp:ListItem Value="未理货" Text="未理货"></asp:ListItem>
                    <asp:ListItem Value="理货中" Text="理货中"></asp:ListItem>
                    <asp:ListItem Value="理货完成" Text="理货完成"></asp:ListItem>
                </asp:DropDownList>
            </td>     
            <td colspan="2" align="center">
                <asp:Button ID="btnSearch" runat="server" Text ="搜索" CssClass="txtInput" onclick="btnSearch_Click" />
            </td>
        </tr>
    </table>
	    
</div>
<br />
<div id="overbrim">
    <div class="shadowT floatL">    
     
        <table id="tbColl" class="display" cellpadding="0" cellspacing="0" border="0">
     
          <thead>
     
            <tr>
     
                <th>序号</th>
     
                <th>Load号</th> 
     
                <th>客户名称</th>
                
                <th>CJO号</th>
     
                <th>收集单号</th>
     
                <th>入库日期</th>
     
                <th>总重量</th>

                <th>已理货总重量</th>

                <th>未理货总重量</th>
     
            </tr>
     
          </thead>
     
          <tbody>  
        <asp:Repeater ID="reptBar" runat="server">  
        <ItemTemplate>
        <tr>
            
          <td><%# Container.ItemIndex + 1%></td>
     
          <td><%# Eval("loadnum")%></td>
     
          <td><%# Eval("customername")%></td>
     
          <td><%# Eval("cjono")%></td>
     
          <td><%# Eval("wrlno")%></td> 
     
          <td><%# Eval("wrldate")%></td>
          
          <td><%# Eval("TotalWeight")%></td>
          <td><%# Eval("TotalWeight")%></td>
          <td><%# Eval("UnConWeight")%></td>
    
        </tr>
        </ItemTemplate> 
        </asp:Repeater>
 
     
        </tbody>
     
        </table>
      
    </div>

    <div class="floatL">    
     
        <table class="totalize" cellpadding="0" cellspacing="0" border="0">
     
          <thead>
     
            <tr>
     
                <th>序号</th>
                
                <th>物品名称</th>
     
                <th>净重</th>
     
                <th>计数</th>
     
            </tr>
     
          </thead>
     
          <tbody>  
        <asp:Repeater ID="reptTotal" runat="server">
            <ItemTemplate>
            <tr>
                <td><%# Container.ItemIndex + 1%></td>
                <td><%# Eval("GoodsName")%></td>
                <td><%# Eval("nwt")%></td>
                <td><%# Eval("qty") %></td>
            </tr>
            </ItemTemplate>
        </asp:Repeater>
     
        </tbody>
     
        </table>
      
    </div>
</div>


    <script type="text/javascript">
        $(document).ready(function () {
            $('#tbColl').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                'bPaginate': true,
                "bProcessing": true,
                "iDisplayLength": 20,
                "bSort": true,
                "aaSorting": [[0, "asc"]]
            });
        });
</script>
</asp:Content>
